package com.maxie.demo.lottery.event;

import com.maxie.demo.lottery.LotteryService;
import com.maxie.demo.lottery.entity.LotteryResult;

public class LotteryServiceImpl extends LotteryService {
    @Override
    public LotteryResult draw(String uId) {
        // 抽奖
        if (uId.equals("1001")) {
            return new LotteryResult(uId, 1);
        } else {
            return new LotteryResult(uId, -1);
        }
    }
}
